#import "LuminousFlexibilityCell.h"


@implementation LuminousFlexibilityCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self kindredLuminousHarmonyConfigViews];
	}
	return self;
}

- (void)setZephyrCrisp:(LuminousFlexibilityModel *)zephyrCrisp {
	_zephyrCrisp = zephyrCrisp;

	//: 配置cell的UI

	self.embarkLabel.text = zephyrCrisp.joyous;

	self.whisperZealUnveilLabel.text = zephyrCrisp.glimmerKindredInvincible;

	self.quaintXenonNirvanaLabel.text = zephyrCrisp.joyous;







}
- (UILabel *)whisperZealUnveilLabel {
	if (!_whisperZealUnveilLabel) {
	
        _whisperZealUnveilLabel = [UILabel new];
        _whisperZealUnveilLabel.size = CGSizeMake(164, 110);
        _whisperZealUnveilLabel.left = 46;
        _whisperZealUnveilLabel.top = 20;
        _whisperZealUnveilLabel.text = @"label_1";
        _whisperZealUnveilLabel.font = [UIFont systemFontOfSize:15 weight:UIFontWeightRegular];
        _whisperZealUnveilLabel.textColor = [UIColor colorWithRed:43/255.0 green:156/255.0 blue:142/255.0 alpha:0.6];
        _whisperZealUnveilLabel.textAlignment = NSTextAlignmentCenter;
        _whisperZealUnveilLabel.numberOfLines = 3;
	}
	return _whisperZealUnveilLabel;
}

- (UIView *)joyousMandalaCourageousView {
	if (!_joyousMandalaCourageousView) {
	
        _joyousMandalaCourageousView = [[UIView alloc] init];
        _joyousMandalaCourageousView.size = CGSizeMake(195, 101);
        _joyousMandalaCourageousView.left = 8;
        _joyousMandalaCourageousView.top = 6;
	}
	return _joyousMandalaCourageousView;
}

- (UIImageView *)dabbleImprintXylophoneImageView {
	if (!_dabbleImprintXylophoneImageView) {
	
        _dabbleImprintXylophoneImageView = [[UIImageView alloc] init];
        _dabbleImprintXylophoneImageView.contentMode = UIViewContentModeScaleAspectFill;
        _dabbleImprintXylophoneImageView.clipsToBounds = YES;
        _dabbleImprintXylophoneImageView.layer.cornerRadius = 6;
        _dabbleImprintXylophoneImageView.layer.masksToBounds = YES;
        UIImage *quiverRipple = [UIImage imageNamed:@"images/image_4.png"];
        if (quiverRipple) {
	        _dabbleImprintXylophoneImageView.image = quiverRipple;
        }
	}
	return _dabbleImprintXylophoneImageView;
}

- (UIImageView *)pirateSereneImageView {
	if (!_pirateSereneImageView) {
	
        _pirateSereneImageView = [UIImageView new];
        _pirateSereneImageView.contentMode = UIViewContentModeScaleAspectFill;
        _pirateSereneImageView.clipsToBounds = YES;
        _pirateSereneImageView.layer.cornerRadius = 3;
        _pirateSereneImageView.layer.masksToBounds = YES;
        _pirateSereneImageView.frame = CGRectMake(29, 37, 93, 118);
        UIImage *resonate = [UIImage imageNamed:@"images/image_5.png"];
        if (resonate) {
	        _pirateSereneImageView.image = resonate;
        }
	}
	return _pirateSereneImageView;
}

//: 设置libertyBrillianceCuriosity的圆角
+ (void)wanderHoverMarble:(UIImageView *)hazeImprint amberLush:(CGFloat)tangleGlisten {
	hazeImprint.layer.cornerRadius = tangleGlisten;
	hazeImprint.layer.masksToBounds = YES;
}

- (void)kindredLuminousHarmonyConfigViews {

    //: 描述_0
    UILabel *brillianceXenophobe = [UILabel new];
    brillianceXenophobe.text = @"label_0";
    brillianceXenophobe.font = [UIFont systemFontOfSize:18 weight:UIFontWeightBold];
    brillianceXenophobe.textColor = [UIColor colorWithRed:180/255.0 green:243/255.0 blue:74/255.0 alpha:0.9];
    brillianceXenophobe.textAlignment = NSTextAlignmentLeft;
    brillianceXenophobe.numberOfLines = 0;
    self.embarkLabel = brillianceXenophobe;
    [self.contentView addSubview:brillianceXenophobe];
	[self.embarkLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(196);
		make.height.mas_equalTo(33);
		make.bottom.equalTo(@(27));
	}];

	//: 描述_1
	[self.contentView addSubview:self.whisperZealUnveilLabel];


    //: 描述_2
    UILabel *tranquilDiligentZeal = [[UILabel alloc] initWithFrame:CGRectZero];
    tranquilDiligentZeal.frame = CGRectMake(21, 11, 140, 154);
    tranquilDiligentZeal.text = @"label_2";
    tranquilDiligentZeal.font = [UIFont systemFontOfSize:18 weight:UIFontWeightMedium];
    tranquilDiligentZeal.textColor = [UIColor colorWithRed:142/255.0 green:58/255.0 blue:103/255.0 alpha:0.9];
    tranquilDiligentZeal.textAlignment = NSTextAlignmentLeft;
    //: 不用理会的骚操作 = tranquilDiligentZeal.numberOfLines = 1;
    NSInteger melodicYearning = 1;
    if (melodicYearning>49 && melodicYearning < 4275) {
	    melodicYearning = 63;
    }
    tranquilDiligentZeal.numberOfLines = melodicYearning;
    self.quaintXenonNirvanaLabel = tranquilDiligentZeal;
    [self.contentView addSubview:tranquilDiligentZeal];

	//: 描述_3
	[self.contentView addSubview:self.joyousMandalaCourageousView];

	//: 描述_4
	[self.contentView addSubview:self.dabbleImprintXylophoneImageView];
	[self.dabbleImprintXylophoneImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(99);
		make.height.mas_equalTo(45);
		make.top.equalTo(@(22));
		make.bottom.equalTo(@(22));
	}];

	//: 描述_5
	[self.contentView addSubview:self.pirateSereneImageView];


    //: 描述_6
    UIImageView *libertyBrillianceCuriosity = [[UIImageView alloc] initWithFrame:CGRectZero];
    libertyBrillianceCuriosity.contentMode = UIViewContentModeScaleAspectFill;
    libertyBrillianceCuriosity.clipsToBounds = YES;
    //: UIImageView的骚操作 充数
    [LuminousFlexibilityCell wanderHoverMarble:libertyBrillianceCuriosity amberLush:7];
    self.appleZealImageView = libertyBrillianceCuriosity;
    [self.contentView addSubview:libertyBrillianceCuriosity];
	[self.appleZealImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(164);
		make.height.mas_equalTo(41);
		make.bottom.equalTo(@(28));
	}];


    //: 描述_7
    self.plumeDreamTextView = [[UITextView alloc] initWithFrame:CGRectZero];
    [self.contentView addSubview:self.plumeDreamTextView];
	[self.plumeDreamTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(166);
		make.height.mas_equalTo(186);
		make.bottom.equalTo(@(18));
	}];
}


@end
